package thread3;

public class TestDemo {
    public static void main(String[] args) throws InterruptedException {
        MyThread thread=new MyThread();
        thread.setName("thread线程");
        thread.start();
        //当前线程等待thread执行结束之后才执行
        thread.join();
        for (int i = 0; i < 100; i++) {
            System.out.println("main线程"+i);
        }
    }
}
